/*
package com.pie4cloud.pie.job.api.config;

import org.springframework.beans.factory.ObjectProvider;
import org.springframework.cloud.loadbalancer.core.NoopServiceInstanceListSupplier;
import org.springframework.cloud.loadbalancer.core.ReactorServiceInstanceLoadBalancer;
import org.springframework.cloud.loadbalancer.core.ServiceInstanceListSupplier;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyLoadBalancerConfig {

	// 参数 serviceInstanceListSupplierProvider 会自动注入
*/
/*	@Bean
	public ServiceInstanceListSupplier serviceInstanceListSupplier(ConfigurableApplicationContext context) {
		ServiceInstanceListSupplier supplier = ServiceInstanceListSupplier.builder().withBlockingDiscoveryClient().withCaching().build(context);
		return new NetSegmentServiceInstanceListSupplier(supplier);
	}*//*

	@Bean
	public ReactorServiceInstanceLoadBalancer customLoadBalancer(ObjectProvider<ServiceInstanceListSupplier> serviceInstanceListSupplierProvider) {
		return new CustomRandomLoadBalancerClient(serviceInstanceListSupplierProvider);
	}
}
*/
